//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------
using Mindscape.BackgroundMotion.Website.Controllers;
using Mindscape.BackgroundMotion.Website.Infrastructure;
using Mindscape.BackgroundMotion.Website.Presenters.Interfaces;
using Mindscape.BackgroundMotion.Website.Views;

namespace Mindscape.BackgroundMotion.Website
{
  public partial class Error : PageBase<ErrorPresenter, IErrorView, IContributionController>, IErrorView
  {
    private bool _show404 = false;
    private bool _show500 = false;

    /// <summary>
    /// Directs to show a HTTP 500 (application) error
    /// </summary>
    public bool Show500
    {
      get { return _show500; }
      set 
      { 
        _show500 = value;
        DataBinder.DataBind();
      }
    }

    /// <summary>
    /// Directs to show a HTTP 404 (not found) error
    /// </summary>
    public bool Show404
    {
      get { return _show404; }
      set 
      { 
        _show404 = value;
        DataBinder.DataBind();
      }
    }
  }
}
